import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str1 = scanner.nextLine();
        System.out.println(str1.charAt(2));
    }
}


/*
public class Main {
    public static void main(String[] args) {
        StringBuilder stringBuilder = new StringBuilder("hello world");
        stringBuilder.append("ook");
        System.out.println(stringBuilder);
        StringBuffer str1 = new StringBuffer("123456");
        str1.append("789");
        System.out.println(str1);
        str1.insert(2, 3.14);
        System.out.println(str1);
    }
}*/

/*import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        System.out.println("请输入字符串");
        Scanner scanner = new Scanner(System.in);
        String str1 = scanner.nextLine();
        String[] strs = str1.split("#|&");
        for(String s : strs) {
            System.out.println(s);
        }
    }
}*/



/*import Student.Student;
import java.util.Arrays;
import Student.*;

import javax.xml.bind.SchemaOutputResolver;

public class Main {

    public static void main(String[] args) {
        Student[] students = new Student[3];
        students[0] = new Student("aa", 45, 56, 100);
        students[1] = new Student("bb", 11, 56, 677);
        students[2] = new Student("cc", 33, 56, 12);
        Arrays.sort(students, new AgeCompare());
        System.out.println(Arrays.toString(students));
        Arrays.sort(students, new GradeCompare());
        System.out.println(Arrays.toString(students));
        Arrays.sort(students);
        System.out.println(Arrays.toString(students));
    }
    
}*/




/*
import java.util.Calendar;

public class Main {

    public static void print(Calendar calendar) {
        String str = "year = " + calendar.get(Calendar.YEAR);
        str += ("|mon = " + calendar.get(Calendar.MONTH));
        str += ("|day = " + calendar.get(Calendar.DAY_OF_MONTH));
        str += ("|hour = " + calendar.get(Calendar.HOUR));
        str += ("|min = " + calendar.get(Calendar.MINUTE));
        System.out.println(str);
    }
    public static void main(String[] args) {
        Calendar calendar0 = Calendar.getInstance();
        Calendar calendar1 = Calendar.getInstance();
        calendar0.set(2023, 11, 5, 8, 30, 30);
        int time = calendar1.compareTo(calendar0);
        System.out.println(time);
        System.out.println(calendar0.getTimeInMillis());
        System.out.println(calendar1.getTimeInMillis());
        print(calendar0);
        print(calendar1);
    }
}
*/






/*import java.util.Calendar;

public class Main{
    public static void main(String[] args) throws InterruptedException {
        for(int i = 0; i < 20; i++) {
            Thread.currentThread().sleep(1000);
            Calendar calendar = Calendar.getInstance();
            int sec = calendar.get(Calendar.SECOND);
            int min = calendar.get(Calendar.MINUTE);
            int hou = calendar.get(Calendar.HOUR);
            int day = calendar.get(Calendar.DATE);
            int mon = calendar.get(Calendar.MONTH);
            System.out.println("month = " + mon);
            System.out.println("day = " + day);
            System.out.println("hour = " + hou);
            System.out.println("minute = " + min);
            System.out.println("second = " + sec);
        }
    }
}*/





/*
class father {
    int num;
    public void test() {
        System.out.println("父类方法");
    }
}
class son extends father{
    public void test() {
        System.out.println("子类方法");
        super.test();
    }
}
public class Main {
    public static void main(String[] args) {
        son s = new son();
        s.test();
    }
}*/
